<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<fmt:setBundle basename="ApplicationResources" />
<title><fmt:message key="label.cruduser.add" /></title>
</head>
<body>
	<form action="${pageContext.request.contextPath}/controller/setupuser"
		method=post>
		<center>
			<table cellpadding=4 cellspacing=2 border=0>
				<tr>
					<th width="30%"><fmt:message key="label.cruduser.name" /></th>
					<th width="45%"><fmt:message key="label.cruduser.firstName" /></th>

				</tr>
				<tr>
					<td></td>
					<td><input type="hidden" name="ins" value="true" /></td>
				</tr>
				<tr>
					<td><fmt:message key="label.cruduser.name" /></td>
					<td><input type="text" name="name" value="" size=45 required
						maxlength=20><font color="red">*</font></td>
				</tr>
				<tr>
					<td><fmt:message key="label.cruduser.firstName" /></td> 
					<td><input type="text" name="firstName" value="" size=15 required
						maxlength=20><font color="red">*</font></td>
				</tr>

				<tr>
					<td><fmt:message key="label.cruduser.lastName" /></td>
					<td><input type="text" name="lastName" value="" size=15 required
						maxlength=20><font color="red">*</font></td>
				</tr>
				
				<tr>
					<td><fmt:message key="label.cruduser.password" /></td>
					<td><input type="password" name="password" required
						value="${edituser.password}" size=15 maxlength=20><font color="red">*</font></td>
				</tr>

				<tr>
					<td><fmt:message key="label.cruduser.role" /></td>
					<td>
					<select multiple="multiple" name="roles" required> <font color="red">*</font>
							<c:forEach var="role" items="${roles}" varStatus="status">
							 <option value="${role.roleId}"> ${role.roleName}</option>
							</c:forEach>
										
						</select>
						</td>
				</tr>

			</table>
		</center>
		<input type="submit" value="Submit"> <input type="reset"
			value="Reset">
	</form>


</body>
</html>